import 'package:flutter_timezone/flutter_timezone.dart';

class TimeZoneUtils {
  //原生时区
  static TimezoneInfo? timezone;

  static Future<void> init() async {
    final result = await FlutterTimezone.getLocalTimezone();
    timezone = result;
  }

  static Future<TimezoneInfo> refresh() async {
    final result = await FlutterTimezone.getLocalTimezone();
    timezone = result;
    return result;
  }
}
